<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>点击事件</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
  <div id="app">
      {{message}}
      <button v-on:click="dianji">点击</button>

  </div>

<script>
    var app =new Vue({
      el:"#app",
        data: {
             message:'hello world',

        },
        methods:{
           dianji:function(){//分割再反转
               this.message= this.message.split('').reverse().join('');
          },
        }
    });

</script>
</body>
</html>